/**
 * @author Administrator
 */
function Employee(){
	
	var self = Ti.UI.createWindow({
		layout:"vertical",
		backgroundColor:'#ffffff'
	});
	
	
	var mainView = Ti.UI.createScrollView({
		layout:'vertical'
	});
	
	var viewTop = Ti.UI.createView({
		height:80,
		borderColor:'#AABBCC',
		borderWidth:1
	});
	
	mainView.add(viewTop);
	
	var mn_Emp = Ti.UI.createTableViewRow({
		layout:'horizontal',
		hasChild:true
	});
    mn_Emp.selectedBackgroundColor = '#fff';
    mn_Emp.height = 60;
    
    var img_Emp = Ti.UI.createImageView({
    	image:'/images/ABLogo.png',
    	width:'50',
    	height:'50'
    });
	
	var lb_Emp = Ti.UI.createLabel({
		text:'Employees',
		font:{textSize:14, fontWeight:'bold', color:"#000000"}
	});
	mn_Emp.add(img_Emp);
	mn_Emp.add(lb_Emp);
	
	
	var mn_Timesheet = Ti.UI.createTableViewRow({
		height:70,
		hasChild:true,
		font:{textSize:14, fontWeight:'bold', color:"#000000"}
	});
	mn_Timesheet.setTitle('Timesheet');
	mn_Timesheet.setLeftImage('/images/ABLogo.png');
	
	
	var mn_Leave = Ti.UI.createTableViewRow({
		hasChild:true,
		font:{textSize:14, fontWeight:'bold', color:"#000000"}
	});
	mn_Leave.setTitle('Leave Application');
	mn_Leave.setLeftImage('/images/leave.png');
	
	var mn_Travel = Ti.UI.createTableViewRow({
		hasChild:true,
		font:{textSize:14, fontWeight:'bold', color:"#000000"}
	});
	mn_Travel.setTitle('Travel Request');
	mn_Travel.setLeftImage('/images/travel.png');
	
	var mn_Claim = Ti.UI.createTableViewRow({
		hasChild:true,
		font:{textSize:14, fontWeight:'bold', color:"#000000"}
	});
	mn_Claim.setTitle('Claims');
	mn_Claim.setLeftImage('/images/wallet.png');
	/*
	var row1= Ti.UI.createTableViewRow({
		title:'Employees',
		hasChild:true,
		font:{fontSize:14}
	});
	row1.setLeftImage('images/ABLogo.png');
	*/
	var data = [];
	data.push(mn_Emp);
	data.push(mn_Timesheet);
	data.push(mn_Leave);
	
	//data.push(row2);
	
	var row2 = Ti.UI.createTableViewRow({
		title:'Timesheet',
		hasChild:true,
		font: {fontSize: 14}
	});
	
	var mainTable = Ti.UI.createTableView({});
	mainTable.setData(data);
	
	var logo = Ti.UI.createImageView({
		top:20,left:20,right:20, height:'auto',
		image:'images/nophoto.jpeg'
	});
	

	mainView.add(mainTable);
	self.add(mainView);
	return self;
}

module.exports = Employee;